From: Keir Fraser Date: Wed, 29 Oct 2008 12:04:38 +0000 (+0000) Subject: minios: Define __INSIDE_MINIOS__ rather than __MINIOS__ X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14054^2~15 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=aa4eca06c488a53c9aa939d79e484f6a297767df;p=xen.git minios: Define __INSIDE_MINIOS__ rather than __MINIOS__ Signed-off-by: Ian Jackson --- diff --git a/extras/mini-os/Makefile b/extras/mini-os/Makefile index 7d57086c53..ec24cba14a 100644 --- a/extras/mini-os/Makefile +++ b/extras/mini-os/Makefile @@ -18,9 +18,6 @@ include minios.mk # Set tester flags # CFLAGS += -DBLKTEST_WRITE -# Make the headers define our internal stuff -CFLAGS += -D__MINIOS__ - # Define some default flags for linking. LDLIBS := APP_LDLIBS := diff --git a/extras/mini-os/include/sched.h b/extras/mini-os/include/sched.h index 62dc4a93c6..c60e61e94a 100644 --- a/extras/mini-os/include/sched.h +++ b/extras/mini-os/include/sched.h @@ -48,7 +48,7 @@ struct thread* create_thread(char *name, void (*function)(void *), void *data); void exit_thread(void) __attribute__((noreturn)); void schedule(void); -#ifdef __MINIOS__ +#ifdef __INSIDE_MINIOS__ #define current get_current() #endif diff --git a/extras/mini-os/minios.mk b/extras/mini-os/minios.mk index 7ee19b3a86..698648a904 100644 --- a/extras/mini-os/minios.mk +++ b/extras/mini-os/minios.mk @@ -26,6 +26,9 @@ else DEF_CFLAGS += -O3 endif +# Make the headers define our internal stuff +DEF_CFLAGS += -D__INSIDE_MINIOS__ + # Build the CFLAGS and ASFLAGS for compiling and assembling. # DEF_... flags are the common mini-os flags, # ARCH_... flags may be defined in arch/$(TARGET_ARCH_FAM/rules.mk